#ifndef __ARTIST_TRANSFORM_H__
#define __ARTIST_TRANSFORM_H__

#define OneHexCharToNumber(character)  \
        (                              \
        (((character)>47 && (character)<58) || ((character)>64 && (character)<71) ||((character)>96&&(character)<103))? \
        (((character)>47 && (character)<58)?(character-48):(((character)>64 && (character)<71)?(character-55):(character-87)))     \
        :16)

#define OneDecCharToNumber(character)  \
        (((character>47)&&(character<58))?(character-48):10)

S4B   UHexStringToNumber(PCCHAR string,U4B number,PU4B out);
S4B   UDecStringToNumber(PCCHAR string,U4B number,PU4B out);
S4B   U4BToBigHexString(U4B integer,PCHAR buffer);
#endif
